import request from '../../utils/request'


//案例类型
const getCategories = id => {
  return request({
    url: '/api/categories/'+id,
    method: 'GET'
  })
}
//创建咨询
const getConsults = (cate_id, username, phone, message) => {
  return request({
    url: '/api/consults',
    method: 'Post',
    data:{
      cate_id, username, phone, message, token:true
    }
  })
}

module.exports = {
  getCategories,
  getConsults
}